home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 10
/
AACD 10.iso
/
AACD
/
Games
/
MAME
/
src
/
vidhrdw
/
blockade.c
< prev
next >
Wrap
C/C++ Source or Header
|
2000-01-09
|
987b
|
47 lines
#include "driver.h"
#include "vidhrdw/generic.h"
void blockade_vh_screenrefresh(struct osd_bitmap *bitmap,int full_refresh)
{
int offs;
/* for every character in the Video RAM, check if it has been modified */
/* since last time and update it accordingly. */
for (offs = videoram_size - 1;offs >= 0;offs--)
{
if (dirtybuffer[offs])
{
int sx,sy;
int charcode;
dirtybuffer[offs] = 0;
sx = offs % 32;
sy = offs / 32;
charcode = videoram[offs];
drawgfx(tmpbitmap,Machine->gfx[0],
charcode,
0,
0,0,
8*sx,8*sy,
&Machine->drv->visible_area,TRANSPARENCY_NONE,0);
if (!full_refresh)
drawgfx(bitmap,Machine->gfx[0],
charcode,
0,
0,0,
8*sx,8*sy,
&Machine->drv->visible_area,TRANSPARENCY_NONE,0);
}
}
if (full_refresh)
/* copy the character mapped graphics */
copybitmap(bitmap,tmpbitmap,0,0,0,0,&Machine->drv->visible_area,TRANSPARENCY_NONE,0);
}